
[dbo].[CommunicationReasonRef]
CREATE TABLE [dbo].[CommunicationReasonRef]
(
[CommunicationReasonKey] [uniqueidentifier] NOT NULL,
[CommunicationReasonDesc] [nvarchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Formula] [nvarchar] (500) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[IsDefaultType] [bit] NOT NULL,
[DefaultOptOutFlag] [bit] NOT NULL,
[CannotOptOutFlag] [bit] NOT NULL CONSTRAINT [DF_CommunicationReasonRef_CannotOptOutFlag] DEFAULT ((0)),
[IsSolicitation] [bit] NOT NULL CONSTRAINT [DF_CommunicationReasonRef_IsSolicitation] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[CommunicationReasonRef] ADD CONSTRAINT [PK_CommunicationReasonRef] PRIMARY KEY CLUSTERED ([CommunicationReasonKey]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[CommunicationReasonRef] ADD CONSTRAINT [FK_CommunicationReasonRef_UniformRegistry] FOREIGN KEY ([CommunicationReasonKey]) REFERENCES [dbo].[UniformRegistry] ([UniformKey])
GO